
<!-- <link rel="stylesheet" type="text/css" href="../../../public_src/css/normalize.css">
<link rel="stylesheet" type="text/css" href="../../../public_src/css/public.css">
<link rel="stylesheet" type="text/css" href="../../../css/css_modules/feedback/index.css"> -->

<div class="feedback">
  
  <!-- <div class="list-type">
    <h3 class="question">坐车体验<span class="title-lable">【多选】</span></h3>
    <ul class="answer">
      <li>
        一切顺利
        <b></b>
      </li>
      <li class="selected">
        等一会儿车
        <b></b>
      </li>
    </ul>
  </div>
  <div class="row-type">
    <h3 class="question">坐车体验<span class="title-lable">【多选】</span></h3>
    <ul class="answer">
      <li>
        一切顺利
        <b></b>
      </li>
      <li>
        等一会儿车
        <b></b>
      </li>
      <li>
        等一会儿车
        <b></b>
      </li>
    </ul>
  </div>
  <div class="textarea">
    <textarea placeholder="意见、表扬、批评，都请猛烈开火吧！"></textarea>
  </div> -->
</div>
<div class="m-modal-bg s-m-modal s-hide" id="warn" data-xm-closetar="1">
  <div class="m-modal-container">
    <div class="m-modal-row">
      <div class="m-modal-body">
        <div class="m-modal-header">
          <p>有问题漏填噢!</p>
          <p>请再检查下!</p>
        </div>
        <div class="m-modal-mainn">
          <button class="js-confirm confirm" data-s-dismiss="#warn">知道了</button>
        </div>
      </div>
    </div>
  </div>
</div>
<div class="m-modal-bg s-m-modal s-hide" id="go" data-xm-closetar="1">
  <div class="m-modal-container">
    <div class="m-modal-row">
      <div class="m-modal-body">
        <div class="m-modal-header">
          <p>谢谢反馈!</p>
        </div>
        <div class="m-modal-mainn">
          <button class="js-go confirm">知道了</button>
        </div>
      </div>
    </div>
  </div>
</div>

<script type="text/template" id="feedbackTpl">
  
  <form id="answerData" data-exam="<%=list.id  %>" onsubmit="return false;">
    <input type="hidden" name="exam_id" value="<%=list.id  %>">
  
    <% for(var i=0 ; i < list.question.length ; i++) {%>
      <% if(list.question[i].id === 1889 || list.question[i].id === 1891) {%>
      <div class="list-type q-list" data-id="<%=list.question[i].id %>" data-type="<%=list.question[i].type %>">
        <h3 class="question"><%=list.question[i].q_body.title %><span class="title-lable"><% if(list.question[i].type === 2) {%>【多选】<% } %></span></h3>
        <ul class="answer">
          <% for(var j=0 ; j < list.question[i].q_options.length ; j++) {%>
          <li class="<%='q'+list.question[i].id %>" data-aid="<%=list.question[i].q_options[j].id %>" data-event="<%=list.question[i].type %>" data-belong=".q-list">
            <%=list.question[i].q_options[j].text %>
            <b></b>
          </li>
          <% } %>
        </ul>

        <input class="question" type="hidden" name="question_id[]">
        <input class="answer" type="hidden" name="answer[]">
      </div>
      <% } %>
      <% if(list.question[i].id === 1890 || list.question[i].id === 1892) {%>
      <div class="row-type q-list" data-id="<%=list.question[i].id %>" data-type="<%=list.question[i].type %>">
        <h3 class="question"><%=list.question[i].q_body.title %><span class="title-lable"><% if(list.question[i].type === 2) {%>【多选】<% } %></span></h3>
        <ul class="answer">
          <% for(var j=0 ; j < list.question[i].q_options.length ; j++) {%>
          <% if(list.question[i].q_options[j].text !== '自定义') {%>
          <li class="<%='q'+list.question[i].id %>" data-aid="<%=list.question[i].q_options[j].id %>" data-event="<%=list.question[i].type %>" data-belong=".q-list">
            <%=list.question[i].q_options[j].text %>
            <b></b>
          </li>
          <% } %>
          <% } %>
        </ul>
        <input class="question" type="hidden" name="question_id[]">
        <input class="answer" type="hidden" name="answer[]">
      </div>
      <% } %>
      <% if(list.question[i].id === 1893) {%>
      <div class="textarea" data-id="<%=list.question[i].id %>" data-type="<%=list.question[i].type %>">
        <textarea class="text-container" placeholder="<%=list.question[i].q_body.title %>" data-event="<%=list.question[i].type %>" data-belong=".textarea"></textarea>
        <input class="question" type="hidden" name="question_id[]" value="<%=list.question[i].id %>">
        <input class="answer" type="hidden" name="answer[]">
      </div>
      <% } %>
      
    <% } %>
    <button class="sum js-sum">提 交</button>
  </form>
</script>